function  test(player) {
    function xxx(a, b) {
        console.log(player, a, b);
    }

    var timer = setInterval(() => {
        xxx(1, 2);
        setTimeout(() => {
            clearInterval(timer);
        }, 1000);
    }, 10);
}
/*
test('b');
setTimeout(() => {
    test('a').xxx(22, 22);
},2000);
*/

function doubleReturn() {
    return [singleReturn,];
}

function singleReturn() {
    return 1;
}

var [a, b] = doubleReturn();
console.log(a(),b);
